﻿namespace NRepository.Samples.Core.Domain.Validation
{
    public class ValidationMessage
    {
        public ValidationMessage(string propertyName, string errorMsg, ValidationLevelType validationLevel = ValidationLevelType.Error)
        {
            PropertyName = propertyName;
            ErrorMessage = errorMsg;
            ValidationLevel = validationLevel;
        }

        public ValidationLevelType ValidationLevel
        {
            get;
            private set;
        }

        public string PropertyName
        {
            get;
            private set;
        }

        public string ErrorMessage
        {
            get;
            private set;
        }
    }

}